package com.ruoyi.an.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机构推广用户列对象 an_wechat_user_mechanism
 * 
 * @author ruoyi
 * @date 2022-11-05
 */
@Data
public class AnWechatUserMechanism extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long mechanismMemberUserId;

    /** 微信用户ID */
    @Excel(name = "微信用户ID")
    private Long wechatUserId;

    /** 机构成员ID(该用户归因) */
    @Excel(name = "机构成员ID(该用户归因)")
    private Long mechanismMemberId;

    /** 筛查分数 */
    @Excel(name = "筛查分数")
    private Long screeningScore;

    /** 是否完成筛查(作为是否结算的依据) */
    @Excel(name = "是否完成筛查(作为是否结算的依据)")
    private Long isDone;

    /** 筛查结果图片 */
    @Excel(name = "筛查结果图片")
    private String screeningResult;

    /** 机构认证操作 */
    @Excel(name = "机构认证操作")
    private Long isMechanism;

    /** 来源推广码 */
    @Excel(name = "来源推广码")
    private String promotionCode;

    /** 筛查完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "筛查完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date screeningDoneTime;

    /** 首次授权时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "首次授权时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date authTime;

    private String mechanismName;
    /** 爱脑订单号 */
    @Excel(name = "京师端订单号")
    private String outTradeNo;
    /** 京师端订单号 */
    @Excel(name = "京师端订单号")
    private String tradeNo;

    /** 测评页面URL */
    @Excel(name = "测评页面URL")
    private String evaluationUrl;

    /** 测评报告图片 */
    @Excel(name = "测评报告图片")
    private String screeningImg;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mechanismMemberUserId", getMechanismMemberUserId())
            .append("wechatUserId", getWechatUserId())
            .append("mechanismMemberId", getMechanismMemberId())
            .append("screeningScore", getScreeningScore())
            .append("isDone", getIsDone())
            .append("screeningResult", getScreeningResult())
            .append("isMechanism", getIsMechanism())
            .append("promotionCode", getPromotionCode())
            .append("screeningDoneTime", getScreeningDoneTime())
            .append("authTime", getAuthTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
